namespace CRC_Editor
{
    public class CardEnvironment
    {
        
        public static CardEnvironment Default
        {
            get 
            {
                if (cardEnviroment == null)
                {
                    cardEnviroment = new CardEnvironment();
                    cardEnviroment.CardFactory = new CardFactory(cardEnviroment);
                    cardEnviroment.CardRepository = new CardRepository(cardEnviroment);
                }
                return cardEnviroment;
            }
            set
            {
                cardEnviroment = value;
            }
        }

        static CardEnvironment cardEnviroment;
        public CardFactory CardFactory;
        public CardRepository CardRepository;
    }
}